home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 March / PCWorld_2007-03_cd.bin / temacd / greenbrowser / GreenBrowserSetup.exe / {app} / Resource / function.js < prev    next >
Text File  |  2007-01-12  |  19KB  |  620 lines

  1. var g_nLastVisitCount;
  2.  
  3. function LastVisitSetCount(nCount)
  4. {
  5.     g_nLastVisitCount = nCount;
  6. }
  7.  
  8. function LastVisitCheckAll()
  9. {    
  10.     for (var i=0;i<g_nLastVisitCount;i++)
  11.         eval('LastVisit'+i+'.checked=LastVisitAll.checked');
  12. }
  13.  
  14. function LastVisitOpen()
  15. {
  16.     for (var i=g_nLastVisitCount-1;i>=0;i--)//for (var i=0;i<g_nLastVisitCount;i++)
  17.     {
  18.         if (eval('LastVisit'+i+'.checked'))
  19.         {
  20.             strUrl = external.gbGetLastVisit("Url"+i);
  21.             if (strUrl.length<1)
  22.                 break;
  23.             try{
  24.             window.open(strUrl,'_blank');
  25.             }catch(e){}
  26.         }
  27.     }
  28. }
  29.  
  30. function LastVisitCopyUrl()
  31. {
  32.     var strTemp='';
  33.     try{
  34.     for (var i=0;i<g_nLastVisitCount;i++)
  35.     {
  36.         if (eval('LastVisit'+i+'.checked'))
  37.         {
  38.             strUrl = external.gbGetLastVisit("Url"+i);
  39.             if (strUrl.length<1)
  40.                 break;
  41.             strTemp += strUrl;
  42.             strTemp += "\r\n";
  43.         }
  44.         
  45.     }
  46.     }catch(e){}
  47.     if (strTemp.length>1)
  48.         window.clipboardData.setData("Text", strTemp);
  49. }
  50.  
  51. function CheckSearch()
  52. {
  53.     if(formsearch.baidu.checked)
  54.         window.open("http://www.baidu.com/s?tn=greenbrowser_3_pg&word="+formsearch.key.value,"baidu");
  55.     if(formsearch.google.checked)
  56.         window.open("http://www.google.cn/search?hl=zh-CN&q="+formsearch.key.value,"google");
  57.     if(formsearch.yahoocn.checked)
  58.         window.open("http://cn.search.yahoo.com/search?p="+formsearch.key.value,"yahoocn");
  59.     if(formsearch.sogou.checked)
  60.         window.open("http://www.sogou.com/web?sogouhome=&shuru=shou&query="+formsearch.key.value,"sogou");
  61.     if(formsearch.skycn.checked)
  62.         window.open("http://www.skycn.com/search.php?sor=00&ss_name="+formsearch.key.value,"skycn");
  63.     if(formsearch.fkeebt.checked)
  64.         window.open("http://bt.fkee.com/search.aspx?p=Seed&b=0&q="+formsearch.key.value,"fkeebt");
  65.     //
  66.     if(formsearch.baiduimage.checked)
  67.         window.open("http://www.baidu.com/i?ct=201326592&cl=2&lm=-1&tn=baiduimage&word="+formsearch.key.value,"baiduimage");
  68.     if(formsearch.baidump3.checked)
  69.         window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3&ct=134217728&lm=-1&rn=&word="+formsearch.key.value,"baidump3");
  70.     if(formsearch.baidugeci.checked)
  71.         window.open("http://mp3search.baidu.com/wstsearch?tn=baidump3lyric&ct=150994944&lm=-1&rn=&word="+formsearch.key.value,"baidugeci");
  72.     if(formsearch.baidunews.checked)
  73.         window.open("http://news.baidu.com/ns?cl=2&rn=20&tn=news&word="+formsearch.key.value,"baidunews");
  74.     if(formsearch.baidupost.checked)
  75.         window.open("http://post.baidu.com/f?kw="+formsearch.key.value,"baidupost");
  76.     if(formsearch.baiduzhidao.checked)
  77.         window.open("http://zhidao.baidu.com/q?ct=17&pn=0&tn=ikaslist&rn=10&word="+formsearch.key.value,"baiduzhidao");
  78.     if(formsearch.baiducang.checked)
  79.         window.open("http://cang.baidu.com/do/s?ct=21&word="+formsearch.key.value,"baiducang");
  80.     if(formsearch.baidufile.checked)
  81.         window.open("http://www.baidu.com/baidu?ft=all&q1="+formsearch.key.value,"baidufile");
  82.     if(formsearch.baidubaike.checked)
  83.         window.open("http://baike.baidu.com/w?ct=17&lm=0&tn=baiduWikiSearch&pn=0&rn=10&word="+formsearch.key.value+"&submit=search","baidubaike");
  84.     if(formsearch.baidumap.checked)
  85.         window.open("http://map.baidu.com/m?word="+formsearch.key.value,"baidumap");
  86.     if(formsearch.baidudict.checked)
  87.         window.open("http://www.baidu.com/baidu?ie=gb2312&bs=&sr=&z=&ct=1048576&cl=3&f=8&word="+formsearch.key.value,"baidudict");
  88.     if(formsearch.joyo.checked)
  89.         window.open("http://www.joyo.com/prodsearch/prodsearch.asp?source=ad4all_40187&vname="+formsearch.key.value,"joyo");
  90.     if(formsearch.dangdang.checked)
  91.         window.open("http://www.dangdang.com/league/leagueref.asp?from=427-40187&backurl=http://211.100.16.156/dangdang.dll?key="+formsearch.key.value,"dangdang");
  92.     return false;
  93. }
  94.  
  95. function CheckSearchEn()
  96. {
  97.     if(formsearch.google.checked)
  98.         window.open("http://www.google.com/search?hl=en&q="+formsearch.key.value,"google");
  99.     if(formsearch.yahoo.checked)
  100.         window.open("http://search.yahoo.com/search?p="+formsearch.key.value,"yahoo");
  101.     if(formsearch.baidu.checked)
  102.         window.open("http://www.baidu.com/s?tn=greenbrowser_2_pg&word="+formsearch.key.value,"baidu");
  103.     if(formsearch.ask.checked)
  104.         window.open("http://www.ask.com/web?q="+formsearch.key.value,"ask");
  105.     if(formsearch.alexa.checked)
  106.         window.open("http://www.alexa.com/search?q="+formsearch.key.value,"alexa");
  107.     if(formsearch.snapfiles.checked)
  108.         window.open("http://www.snapfiles.com/downloadfind.php?action=s&st="+formsearch.key.value,"snapfiles");
  109.     if(formsearch.torrentspy.checked)
  110.         window.open("http://www.torrentspy.com/search?query="+formsearch.key.value,"torrentspy");
  111.     if(formsearch.mp3.checked)
  112.         window.open("http://www.mp3.com/search.php?action=Search&stype=song&query="+formsearch.key.value,"mp3");
  113.     //
  114.     if(formsearch.googleimage.checked)
  115.         window.open("http://images.google.com/images?hl=en&q="+formsearch.key.value,"googleimage");
  116.     if(formsearch.googlenews.checked)
  117.         window.open("http://news.google.com/news?hl=en&q="+formsearch.key.value,"googlenews");
  118.     if(formsearch.googleblog.checked)
  119.         window.open("http://blogsearch.google.com/blogsearch?hl=en&q="+formsearch.key.value,"googleblog");
  120.     if(formsearch.googlevideo.checked)
  121.         window.open("http://video.google.com/videosearch?hl=en&q="+formsearch.key.value,"googlevideo");
  122.     if(formsearch.googlemaps.checked)
  123.         window.open("http://maps.google.com/maps?hl=en&q="+formsearch.key.value,"googlevideo");
  124.     if(formsearch.googlebooks.checked)
  125.         window.open("http://books.google.com/books?q="+formsearch.key.value,"googlebooks");
  126.     if(formsearch.googlecode.checked)
  127.         window.open("http://www.google.com/codesearch?hl=en&q="+formsearch.key.value,"googlecode");
  128.     if(formsearch.googlefroogle.checked)
  129.         window.open("http://froogle.google.com/froogle?checkout=1&lmode=online&q="+formsearch.key.value,"googlefroogle");
  130.     if(formsearch.googletrends.checked)
  131.         window.open("http://www.google.com/trends?q="+formsearch.key.value,"googletrends");
  132.     if(formsearch.googlegroups.checked)
  133.         window.open("http://groups.google.com/groups/search?qt_s=Search&q="+formsearch.key.value,"googlegroups");    
  134.     if(formsearch.googlefinance.checked)
  135.         window.open("http://finance.google.com/finance?q="+formsearch.key.value,"googlefinance");
  136.     if(formsearch.reference.checked)
  137.         window.open("http://dictionary.reference.com/search?q="+formsearch.key.value,"reference");
  138.         
  139.     return false;
  140. }
  141.  
  142. function ShowTime()
  143. {
  144.     today= new Date();
  145.     var years=today.getYear();
  146.     var months=today.getMonth()+1;
  147.     var dates=today.getDate();
  148.     var hours=today.getHours();
  149.     var minutes=today.getMinutes();
  150.     var seconds=today.getSeconds();
  151.     
  152.     if (eval(hours) <10) {hours="0"+hours;}
  153.     if (eval(minutes) < 10) {minutes="0"+minutes;}
  154.     if (seconds < 10) {seconds="0"+seconds;}
  155.     
  156.     var step;
  157.     if(eval(hours)<1)        step="╬τ╥╣";
  158.     else if(eval(hours)<6)    step="┴Φ│┐";
  159.     else if(eval(hours)<9)    step="╘τ╔╧";
  160.     else if(eval(hours)<11)    step="╔╧╬τ";
  161.     else if(eval(hours)<14)    step="╓╨╬τ";
  162.     else if(eval(hours)<18)    step="╧┬╬τ";
  163.     else if(eval(hours)<23)    step="═φ╔╧";
  164.     else if(eval(hours)<24)    step="╬τ╥╣";
  165.     
  166.     //╦π┼⌐└·╚╒└·////////////////////////////////////////////////////////////////////////////////////////
  167.     var bsYear;  
  168.     var bsDate;  
  169.     var bsWeek;  
  170.     var arrLen=8;    //╩²╫Θ│ñ╢╚
  171.     var sValue=0;    //╡▒─Ω╡─├δ╩²
  172.     var dayiy=0;    //╡▒─Ω╡┌╝╕╠∞
  173.     var miy=0;    //╘┬╖▌╡─╧┬▒Ω
  174.     var iyear=0;    //─Ω╖▌▒Ω╝╟
  175.     var dayim=0;    //╡▒╘┬╡┌╝╕╠∞
  176.     var spd=86400;    //├┐╠∞╡─├δ╩²
  177.     
  178.     var year1999="30;29;29;30;29;29;30;29;30;30;30;29";    //354
  179.     var year2000="30;30;29;29;30;29;29;30;29;30;30;29";    //354
  180.     var year2001="30;30;29;30;29;30;29;29;30;29;30;29;30";    //384
  181.     var year2002="30;30;29;30;29;30;29;29;30;29;30;29";    //354
  182.     var year2003="30;30;29;30;30;29;30;29;29;30;29;30";    //355
  183.     var year2004="29;30;29;30;30;29;30;29;30;29;30;29;30";    //384
  184.     var year2005="29;30;29;30;29;30;30;29;30;29;30;29";    //354
  185.     var year2006="30;29;30;29;30;29;30;29;30;30;29;30;30";
  186.     var year2007="29;29;30;29;29;30;29;30;30;30;29;30";
  187.     
  188.     var month1999="╒²╘┬;╢■╘┬;╚²╘┬;╦─╘┬;╬σ╘┬;┴∙╘┬;╞▀╘┬;░╦╘┬;╛┼╘┬;╩«╘┬;╩«╥╗╘┬;╩«╢■╘┬"
  189.     var month2001="╒²╘┬;╢■╘┬;╚²╘┬;╦─╘┬;╚≥╦─╘┬;╬σ╘┬;┴∙╘┬;╞▀╘┬;░╦╘┬;╛┼╘┬;╩«╘┬;╩«╥╗╘┬;╩«╢■╘┬"
  190.     var month2004="╒²╘┬;╢■╘┬;╚≥╢■╘┬;╚²╘┬;╦─╘┬;╬σ╘┬;┴∙╘┬;╞▀╘┬;░╦╘┬;╛┼╘┬;╩«╘┬;╩«╥╗╘┬;╩«╢■╘┬"
  191.     var month2006="╒²╘┬;╢■╘┬;╚²╘┬;╦─╘┬;╬σ╘┬;┴∙╘┬;╞▀╘┬;╚≥╞▀╘┬;░╦╘┬;╛┼╘┬;╩«╘┬;╩«╥╗╘┬;╩«╢■╘┬"
  192.     var month2007="╒²╘┬;╢■╘┬;╚²╘┬;╦─╘┬;╬σ╘┬;┴∙╘┬;╞▀╘┬;░╦╘┬;╛┼╘┬;╩«╘┬;╩«╥╗╘┬;╩«╢■╘┬"
  193.     var Dn="│⌡╥╗;│⌡╢■;│⌡╚²;│⌡╦─;│⌡╬σ;│⌡┴∙;│⌡╞▀;│⌡░╦;│⌡╛┼;│⌡╩«;╩«╥╗;╩«╢■;╩«╚²;╩«╦─;╩«╬σ;╩«┴∙;╩«╞▀;╩«░╦;╩«╛┼;╢■╩«;╪Ñ╥╗;╪Ñ╢■;╪Ñ╚²;╪Ñ╦─;╪Ñ╬σ;╪Ñ┴∙;╪Ñ╞▀;╪Ñ░╦;╪Ñ╛┼;╚²╩«";
  194.     
  195.     var Ys=new Array(arrLen);
  196.     Ys[0]=919094400;Ys[1]=949680000;Ys[2]=980265600;
  197.     Ys[3]=1013443200;Ys[4]=1044028800;Ys[5]=1074700800;
  198.     Ys[6]=1107878400;Ys[7]=1138464000;
  199.     
  200.     var Yn=new Array(arrLen);   //┼⌐└·─Ω╡─├√│╞
  201.     Yn[0]="╝║├«─Ω";Yn[1]="╕²│╜─Ω";Yn[2]="╨┴╦╚─Ω";
  202.     Yn[3]="╚╔╬τ─Ω";Yn[4]="╣∩╬┤─Ω";Yn[5]="╝╫╔Ω─Ω";
  203.     Yn[6]="╥╥╙╧─Ω";Yn[7]="▒√╨τ─Ω"; 
  204.     var D=new Date();
  205.     var yy=D.getYear();
  206.     var mm=D.getMonth()+1;
  207.     var dd=D.getDate();
  208.     var ww=D.getDay();
  209.     if (ww==0) ww="╨╟╞┌╚╒";
  210.     if (ww==1) ww="╨╟╞┌╥╗";
  211.     if (ww==2) ww="╨╟╞┌╢■";
  212.     if (ww==3) ww="╨╟╞┌╚²";
  213.     if (ww==4) ww="╨╟╞┌╦─";
  214.     if (ww==5) ww="╨╟╞┌╬σ";
  215.     if (ww==6) ww="╨╟╞┌┴∙";
  216.     ww=ww;
  217.     var ss=parseInt(D.getTime() / 1000);
  218.     if (yy<100) yy="19"+yy;
  219.     
  220.     for (i=0;i<arrLen;i++)
  221.     {
  222.         if (ss>=Ys[i])
  223.         {
  224.             iyear=i;
  225.             sValue=ss-Ys[i];    //╡▒─Ω╡─├δ╩²
  226.         }
  227.     }
  228.     dayiy=parseInt(sValue/spd)+1;    //╡▒─Ω╡─╠∞╩²
  229.     
  230.     var dpm=year1999;
  231.     if (iyear==1) dpm=year2000;
  232.     if (iyear==2) dpm=year2001;
  233.     if (iyear==3) dpm=year2002;
  234.     if (iyear==4) dpm=year2003;
  235.     if (iyear==5) dpm=year2004;
  236.     if (iyear==6) dpm=year2005;
  237.     if (iyear==7) dpm=year2006;
  238.     dpm=dpm.split(";");
  239.     
  240.     var Mn=month1999;
  241.     if (iyear==2) Mn=month2001;
  242.     if (iyear==5) Mn=month2004;
  243.     if (iyear==7) Mn=month2006;
  244.     Mn=Mn.split(";");
  245.     
  246.     var Dn="│⌡╥╗;│⌡╢■;│⌡╚²;│⌡╦─;│⌡╬σ;│⌡┴∙;│⌡╞▀;│⌡░╦;│⌡╛┼;│⌡╩«;╩«╥╗;╩«╢■;╩«╚²;╩«╦─;╩«╬σ;╩«┴∙;╩«╞▀;╩«░╦;╩«╛┼;╢■╩«;╪Ñ╥╗;╪Ñ╢■;╪Ñ╚²;╪Ñ╦─;╪Ñ╬σ;╪Ñ┴∙;╪Ñ╞▀;╪Ñ░╦;╪Ñ╛┼;╚²╩«";
  247.     Dn=Dn.split(";");
  248.     
  249.     dayim=dayiy;
  250.     
  251.     var total=new Array(13);
  252.     total[0]=parseInt(dpm[0]);
  253.     for (i=1;i<dpm.length-1;i++) total[i]=parseInt(dpm[i])+total[i-1];
  254.     for (i=dpm.length-1;i>0;i--)
  255.     {
  256.         if (dayim>total[i-1])
  257.         {
  258.             dayim=dayim-total[i-1];
  259.             miy=i;
  260.         }
  261.     }
  262.     bsWeek=ww;
  263.     bsDate=yy+"─Ω"+mm+"╘┬";
  264.     bsDate2=dd+"╚╒";
  265.     bsYear="┼⌐└·"+Yn[iyear];
  266.     bsYear2="┼⌐└·"+Yn[iyear]+"íí"+Mn[miy]+Dn[dayim-1];
  267.     if (ss>=Ys[7]||ss<Ys[0]) bsYear=Yn[7];
  268.         
  269.     //╣·└·╜┌╚╒ *▒φ╩╛╖┼╝┘╚╒
  270.     var sFtv = new Array(
  271.     "0101*╘¬╡⌐╜┌",
  272.     "0214*╟Θ╚╦╜┌",
  273.     "0305*╤º└╫╖µ╝═─ε╚╒",
  274.     "0308*╕╛┼«╜┌",
  275.     "0312*╓▓╩≈╜┌",
  276.     "0315*╧√╖╤╒▀╚¿╥µ╚╒",
  277.     "0401*╙▐╚╦╜┌",
  278.     "0407*╩└╜τ╬└╔·╚╒",
  279.     "0422*╩└╜τ╡╪╟≥╚╒",
  280.     "0501*└═╢»╜┌",
  281.     "0502*└═╢»╜┌",
  282.     "0503*└═╢»╜┌",
  283.     "0504*╟α─Ω╜┌",
  284.     "0508*╩└╜τ║∞╩«╫╓╚╒",
  285.     "0512*╣·╝╩╗ñ╩┐╜┌",
  286.     "0515*╣·╝╩╝╥═Ñ╚╒",
  287.     "0517*╣·╝╩╡τ╨┼╚╒",
  288.     "0601*╣·╝╩╢∙═»╜┌",
  289.     "0605*╩└╜τ╗╖╛│▒ú╗ñ╚╒",
  290.     "0606*╚½╣·░«╤█╚╒",
  291.     "0625*╚½╣·═┴╡╪╚╒",
  292.     "0626*╣·╝╩╜√╢╛╚╒",
  293.     "0701*╓╨╣▓╡«│╜&╧π╕█╗╪╣Θ╚╒",
  294.     "0707*┐╣╚╒╒╜╒∙╝═─ε╚╒",
  295.     "0801*╜¿╛ⁿ╜┌",
  296.     "0815*┐╣╚╒╒╜╒∙╩ñ└√╝═─ε",
  297.     "0909*├½╘≤╢½╩┼╩└╝═─ε",
  298.     "0908*╣·╝╩╔¿├ñ╚╒",
  299.     "0910*╓╨╣·╜╠╩ª╜┌", 
  300.     "0927*╩└╜τ┬├╙╬╚╒",
  301.     "0928*┐╫╫╙╡«│╜",
  302.     "1001*╣·╟∞╜┌",
  303.     "1002*╣·╟∞╜┌",
  304.     "1003*╣·╟∞╜┌",
  305.     "1006*└╧╚╦╜┌",
  306.     "1009*╩└╜τ╙╩╒■╚╒",
  307.     "1014*╩└╜τ▒Ω╫╝╚╒",
  308.     "1016*╩└╜τ┴╕╩│╚╒",
  309.     "1024*┴¬║╧╣·╚╒",
  310.     "1120*╥═╫σ─Ω",
  311.     "1121*╥═╫σ─Ω",
  312.     "1122*╥═╫σ─Ω",
  313.     "1112*╦∩╓╨╔╜╡«│╜╝═─ε",
  314.     "1205*╣·╝╩╓╛╘╕╚╦╘▒╚╒",
  315.     "1220*░─├┼╗╪╣Θ╝═─ε",
  316.     "1225*╩Ñ╡«╜┌",
  317.     "1226*├½╘≤╢½╡«│╜╝═─ε");
  318.     
  319.     //┼⌐└·╜┌╚╒ *▒φ╩╛╖┼╝┘╚╒
  320.     var lFtv = new Array(
  321.     "0101*┤║╜┌",
  322.     "0102*┤║╜┌",
  323.     "0103*┤║╜┌",
  324.     "0115*╘¬╧ⁿ╜┌",
  325.     "0505*╢╦╬τ╜┌",
  326.     "0624*╗≡░╤╜┌",
  327.     "0625*╗≡░╤╜┌",
  328.     "0626*╗≡░╤╜┌",
  329.     "0707*╞▀╧ª╟Θ╚╦╜┌",
  330.     "0715*╓╨╘¬╜┌",
  331.     "0815*╓╨╟∩╜┌",
  332.     "0909*╓╪╤⌠╜┌",
  333.     "1208*└░░╦╜┌",
  334.     "1224*╨í─Ω",
  335.     "0100*│²╧ª");
  336.     
  337.     //┼╨╢╧╣·└·╜┌╚╒
  338.     if(months<10&&dates<10)  {datenum="0"+months+"0"+dates;}
  339.     if(months<10&&dates>=10)  {datenum="0"+months+dates;}
  340.     if(months>=10&&dates>=10)  {datenum=months+dates;}
  341.     if(months>=10&&dates<10) {datenum=months+"0"+dates;}
  342.     
  343.     if(miy<10&&dayim<10)  {datenum2="0"+miy+"0"+dayim;}
  344.     if(miy<10&&dayim>=10)  {datenum2="0"+miy+dayim;}
  345.     if(miy>=10&&dayim>=10)  {datenum2=miy+dayim;}
  346.     if(miy>=10&&dayim<10) {datenum2=miy+"0"+dayim;}
  347.     
  348.     sl=sFtv.length;
  349.     for(i=0;i<sl;i++)
  350.     {
  351.         Festv=sFtv[i].split("*");
  352.         if(datenum==Festv[0])
  353.         {
  354.             Festvname=Festv[1]+"íí";
  355.             break;
  356.         }    
  357.         else
  358.         {
  359.             Festvname="";
  360.         }
  361.     }
  362.     
  363.     nl=lFtv.length;
  364.     for(i=0;i<nl;i++)
  365.     {
  366.         Festv=lFtv[i].split("*");
  367.         if(datenum2==Festv[0])
  368.         {
  369.             Festvname2 = "íí"+Festv[1];
  370.             break;
  371.         }    
  372.         else
  373.         {
  374.             Festvname2="";
  375.         }
  376.     }
  377.     
  378.     thisdate = years+"─Ω"+months+"╘┬"+dates+"╚╒";
  379.     thistime = hours+":"+minutes+":"+seconds;
  380.     document.getElementById("time").innerHTML="<div align=center>"+thisdate+"íí"+ww+"<br>"+step+"íí"+thistime+"<br>"+Festvname+bsYear2+Festvname2+"</div>";
  381.     var timer=setTimeout("ShowTime()",1000);
  382. }
  383.  
  384. function ShowTimeEn()
  385. {
  386.     today= new Date();
  387.     var years=today.getYear();
  388.     var months=today.getMonth()+1;
  389.     var dates=today.getDate();
  390.     var hours=today.getHours();
  391.     var minutes=today.getMinutes();
  392.     var seconds=today.getSeconds();
  393.     
  394.     var ww=today.getDay();
  395.     if (ww==0) ww="Sunday";
  396.     if (ww==1) ww="Monday";
  397.     if (ww==2) ww="Tuesday";
  398.     if (ww==3) ww="Wednesday";
  399.     if (ww==4) ww="Thursday";
  400.     if (ww==5) ww="Friday";
  401.     if (ww==6) ww="Saturday";
  402.     
  403.     if (eval(hours) <10) {hours="0"+hours;}
  404.     if (eval(minutes) < 10) {minutes="0"+minutes;}
  405.     if (seconds < 10) {seconds="0"+seconds;}
  406.     
  407.     var step;
  408.     if(eval(hours)<1)        step="Midnight";
  409.     else if(eval(hours)<6)    step="Wee hours";
  410.     else if(eval(hours)<9)    step="Morning";
  411.     else if(eval(hours)<11)    step="Forenoon";
  412.     else if(eval(hours)<14)    step="Noon";
  413.     else if(eval(hours)<18)    step="Afternoon";
  414.     else if(eval(hours)<23)    step="Night";
  415.     else if(eval(hours)<24)    step="Midnight";
  416.         
  417.     thisdate = years+"."+months+"."+dates;
  418.     thistime = hours+":"+minutes+":"+seconds;
  419.     document.getElementById("time").innerHTML="<div align=center>"+thisdate+" "+ww+"<br>"+step+" "+thistime+"</div>";
  420.     var timer=setTimeout("ShowTimeEn()",1000);
  421. }
  422.  
  423. function CheckMail()
  424. {
  425.     var gm=document.gomail
  426.     var vDomain = gm.domains
  427.     var vName = gm.uName
  428.     var vPw = gm.uPw
  429.     if(vDomain.value == "")
  430.     {    alert("╟δ╤í╘±─·╡─╙╩╧Σ...")
  431.         vDomain.focus()
  432.         return false
  433.     }
  434.     if(vName.value == "")
  435.     {    alert("╟δ╠ε╨┤─·╡─╙├╗º├√...")
  436.         vName.focus()
  437.         return false
  438.     }
  439.     if(vPw.value == "") {
  440.         alert("╟δ╠ε╨┤─·╡─├▄┬δ...")
  441.         vPw.focus()
  442.         return false
  443.     }
  444.     
  445.     LoginMail();
  446.     return false
  447. }
  448.  
  449. function CheckMailEn()
  450. {
  451.     var gm=document.gomail
  452.     var vDomain = gm.domains
  453.     var vName = gm.uName
  454.     var vPw = gm.uPw
  455.     if(vDomain.value == "")
  456.     {    alert("Please select your mailbox...")
  457.         vDomain.focus()
  458.         return false
  459.     }
  460.     if(vName.value == "")
  461.     {    alert("Please input your accounts...")
  462.         vName.focus()
  463.         return false
  464.     }
  465.     if(vPw.value == "") {
  466.         alert("Please input your password...")
  467.         vPw.focus()
  468.         return false
  469.     }
  470.     
  471.     LoginMail();
  472.     return false
  473. }
  474.  
  475. function LoginMail()
  476. {
  477.     var gm=document.gomail
  478.     var vDomain = gm.domains
  479.     var vName = gm.uName
  480.     var vPw = gm.uPw
  481.     switch(vDomain.value)
  482.     {
  483.     case "163":
  484.         gm.action =  "http://reg.163.com/CheckUser.jsp"
  485.         gm.url.value = "http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1&language=-1&style=-1"
  486.         gm.username.value = vName.value
  487.         gm.password.value = vPw.value
  488.     break
  489.     case "126":
  490.         gm.action =  "http://entry.126.com/cgi/login"
  491.         gm.domain.value = "126.com"
  492.         gm.user.value = vName.value
  493.         gm.pass.value = vPw.value
  494.     break
  495.     case "188":
  496.         gm.action =  "http://reg.mail.188.com/servlet/coremail/login?language=0&style=1"
  497.         gm.user.value = vName.value
  498.         gm.pass.value = vPw.value
  499.     break
  500.     case "vip163":
  501.         gm.action = "https://ssl1.vip.163.com/logon.m?language=-1&style=-1"
  502.         gm.username.value = vName.value
  503.         gm.password.value = vPw.value
  504.     break
  505.     case "netease":
  506.         gm.action = "http://web.netease.com/cgi/login?verifycookie=1&language=0"
  507.         gm.username.value = vName.value
  508.         gm.password.value = vPw.value
  509.     break
  510.     case "sohu":
  511.         gm.action = "http://login.mail.sohu.com/chkpwd.php"
  512.         gm.url.value = ""
  513.         gm.UserName.value = vName.value
  514.         gm.Password.value = vPw.value
  515.     break
  516.     case "yahoo":
  517.         gm.action = "http://edit.bjs.yahoo.com/config/login"
  518.         gm.login.value = vName.value
  519.         gm.passwd.value = vPw.value
  520.     break
  521.     case "tom":
  522.         gm.action = "http://bjweb.163.net/cgi/163/login_pro.cgi"
  523.         gm.user.value = vName.value
  524.         gm.pass.value = vPw.value
  525.     break
  526.     case "163net":
  527.         gm.action = "http://bjweb.163.net/cgi/163/login_pro.cgi"
  528.         gm.user.value = vName.value
  529.         gm.pass.value = vPw.value
  530.     break
  531.     case "21cn":
  532.         gm.action = "http://passport.21cn.com/maillogin.jsp"
  533.         gm.LoginName.value = vName.value
  534.         gm.passwd.value = vPw.value
  535.         gm.domainname.value = "21cn.com"
  536.         gm.UserName.value = vName.value+'@21cn.com'
  537.     break
  538.     case "china":
  539.         gm.action = "http://mail.china.com/coremail/fcg/login"
  540.         gm.user.value = vName.value
  541.         gm.pass.value = vPw.value
  542.         gm.domainname.value = "china.com"
  543.         //gm.passwd.value = vPw.value
  544.     break
  545.     case "mailchina":
  546.         gm.action = "http://freemail.china.com/extend/gb/NULL/NULL/NULL/SignIn.gen"
  547.         gm.LoginName.value = vName.value
  548.         gm.passwd.value = vPw.value
  549.     break
  550.     case "citiz":
  551.         gm.action = "http://citiz.online.sh.cn/default/login_billing.jsp"
  552.         gm.username.value = vName.value+"@citiz.net"
  553.         gm.password.value = vPw.value
  554.     break
  555.     case "56":
  556.         var gUrsHost = ["m113","m48","m49"];
  557.         gm.action = "http://"+gUrsHost[((new Date()).getSeconds())%3]+".56.com/mail/mail.56"
  558.         gm.username.value = vName.value
  559.         gm.password.value = vPw.value
  560.     break
  561.     case "Xinhuanet":
  562.         gm.action = "http://mail.xinhuanet.com/login.jsp"
  563.         gm.username.value = vName.value
  564.         gm.password.value = vPw.value
  565.         gm.domainname.value = 'xinhuanet.com'
  566.     break
  567.     case "sina":
  568.         gm.action = "http://mail.sina.com.cn/cgi-bin/login.cgi"
  569.         gm.u.value = vName.value
  570.         gm.psw.value = vPw.value
  571.     break
  572.     case "etang":
  573.         gm.action = "http://login.etang.com/servlet/login"
  574.         gm.BackURL.value = "http://vipmail.etang.com"
  575.         gm.login_name.value = vName.value
  576.         gm.login_password.value = vPw.value
  577.     break
  578.     case "eyou":
  579.         gm.action = "https://ssl.eyou.com/mail_login.php"
  580.         gm.LoginName.value = vName.value
  581.         gm.Password.value = vPw.value
  582.     break
  583.     case "yeah":
  584.         gm.action = "http://entry.yeah.net/cgi/login"
  585.         gm.domain.value = "yeah.net"
  586.         gm.user.value = vName.value
  587.         gm.pass.value = vPw.value
  588.     break
  589.     case "263":
  590.         gm.action = "http://g2wm.263.net/xmweb"
  591.         gm.usr.value = vName.value
  592.         gm.pass.value = vPw.value
  593.         gm.domain.value = "263.net"
  594.         gm.func.value = "login"
  595.     break
  596.     case "qq":
  597.         gm.action = "http://mail.qq.com/cgi-bin/login"
  598.         gm.u.value = vName.value
  599.         gm.p.value = vPw.value
  600.         gm.starttime.value=(new Date()).valueOf()
  601.     break
  602.     case "vipsina":
  603.         gm.action = "http://vip.sina.com.cn/cgi-bin/login.cgi"
  604.         gm.user.value = vName.value
  605.         gm.pass.value = vPw.value
  606.     break
  607.     case "Gmail":
  608.         gm.action = "https://www.google.com/accounts/ServiceLoginAuth"
  609.         gm.Email.value = vName.value
  610.         gm.Passwd.value = vPw.value
  611.     break;
  612.     }
  613.     //
  614.     if(vDomain.value!="msn" && vDomain.value!="hotmail" ) s_cookie('m',gomail.domains.selectedIndex,5184000,'/')
  615.     gm.submit()
  616.     vPw.value = ""
  617.     gm.action = ""
  618.     return false
  619. }
  620.